import 'package:flutter/material.dart';

import '../../../common/system_config.dart';
import '../../../utils/tools/screenutil_tool.dart';

class RowItemStatus extends StatelessWidget {
  double w;
  dynamic data;
  int status;

  RowItemStatus(double w, dynamic data, int status) {
    this.w = w;
    this.data = data;
    this.status = status;
  }

  @override
  Widget build(BuildContext context) {
    return Container(
        width: ST.setw(w),
        child: Text("$data",
          textAlign: TextAlign.center,
          style: TextStyle(
            fontSize: SystemConfig.fs_content3,
            color: status == 0 ? Colors.red : null
          )
        )
    );
  }
}